package com.huawang.mdesign.model.service.request;

import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @auther lairenmao
 * @date 2025/5/21
 */
@Data
public class CheckTypesDTO extends ProjectIdDTO {
    @Schema(title = "模型id")
    @NotBlank(message = "instanceId不能为空")
    private String instanceId;

    @Schema(title = "类型id集合")
    @NotEmpty(message = "typeIds不能为空")
    private List<String> typeIds;

    @Schema(title = "是否是and条件查询，true and查询，false,or查询")
    @NotNull(message = "isAndQuery")
    private Boolean isAndQuery=Boolean.FALSE;
}
